<?php use_helper('I18N') ?>

<form action="<?php echo url_for('@sf_guard_signin') ?>" method="post">
     
    <div class="texto_login">
        <div class="login_user">
            <?php echo $form['username']->renderLabel() ?>
            <div class="login_input">
                <?php echo $form['username'] ?>
            </div>
        </div>
        <div class="login_pass">
            <?php echo $form['password']->renderLabel() ?>
            <div class="login_input">
                <?php echo $form['password'] ?>
            </div>
        </div>

        <div style="width: 360px;height: 6px;padding-left: 50px;font-weight:bold;">
            <?php if ($form['username']->hasError()): ?>
                <label for="signin_username" class="errorLogin"><?php echo "<b>El Usuario y/o contraseña son incorrectos.</b>" ?></label>
            <?php endif; ?>
            <?php if ($form['password']->hasError()): ?>
    <!--                          <label for="signin_password" class="error"><?php //echo "Requerido."  ?></label>-->
            <?php endif; ?>
        </div>
    </div>
    <!--                    <div id="linea" style="color:white;padding-top: 30px"><hr></div>  -->

    <div class="recordar">
        <?php echo $form['remember']->renderLabel() ?>
        <div class="recordar_input">
            <?php echo $form['remember']->renderError() ?>
            <?php echo $form['remember'] ?> 
        </div>
    </div>

    <?php echo $form['_csrf_token'] ?>
    <div>
         <input class="iniciar_sesionbt"  title="Ingresar" src="/images/ingresar.png" type="image" />
    </div>
    <?php $routes = $sf_context->getRouting()->getRoutes() ?>
    <?php if (isset($routes['sf_guard_forgot_password'])): ?>
        <a href="<?php echo url_for('@sf_guard_forgot_password') ?>"><?php echo __('&iquest;Olvidaste tu contrase&ntilde;a?', null, 'sf_guard') ?></a>
    <?php endif; ?>

    <?php if (isset($routes['sf_guard_register'])): ?>
        &nbsp; <a href="<?php echo url_for('@sf_guard_register') ?>"><?php echo __('&iquest;Quiere registrarse?', null, 'sf_guard') ?></a>
    <?php endif; ?>

</form>






